CC= /opt/buildroot-2012.08/arm920t/usr/bin/arm-linux-gcc
SRCS = set_serial.c call_number.c send_message.c gprs_main.c
OBJS = set_serial.o call_number.o send_message.o gprs_main.o

gprs.bin: $(OBJS)
	$(CC) -o gprs.bin $(OBJS)
	@make clean

gprs_main.o: $(SRCS) gprs.h
	$(CC) -c  $(SRCS)

set_serial.o: set_serial.c gprs.h
	$(CC) -c  set_serial.c

call_number.o: call_number.c gprs.h
	$(CC) -c  call_number.c

send_message.o: send_message.c  gprs.h
	$(CC) -c  send_message.c

clear:
	@rm gprs.bin

.PHONY: clean
clean:
	@rm *.o 

